/**
 * ClassName: FormalParameter
 * Package: PACKAGE_NAME
 * Description:
 *
 * @Author fjorid
 * @Create 2025/2/19 19:30
 * @Version 1.0
 */
public class FormalParameter {
    String concat(char seperator,String...arry){
        String str = "";
        for (int i = 0; i < arry.length; i++) {
            if(i == 0){
                str += arry[i];
            }else{
                str += seperator + arry[i];
            }
        }
        return str;
    }

    public static void main(String[] args) {
        FormalParameter fp = new FormalParameter();
        System.out.println(fp.concat('a'));
        System.out.println(fp.concat('*',"a","b","c"));
    }
}

